<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>心脏病风险分析</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
        }
        .chart-container {
            height: 600px;
            width: 100%;
        }
        .navbar {
            background-color: #2c3e50;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container">
            <a class="navbar-brand" href="/">
                心脏病风险分析系统
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="/a">年龄分布</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/b">性别分布</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/c">年龄阶段</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/d">健康指标</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/e">多维度风险因素</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/f">生活习惯</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/g">各因素患病相关性</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/h">风险预测</a>
                    </li>
                </ul>
                <a href="/" class="btn btn-outline-light">返回首页</a>
            </div>
        </div>
    </nav>

    <div class="container my-5">
        <div class="row">
            <div class="col-12">
                {{ rl | safe }}
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>